package com.gsk.europepharma.salesReport.hibernate.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the sp_bo.mv_sp_bo_sales_report_quota table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="sp_bo.mv_sp_bo_sales_report_quota"
 */

public abstract class BasemvSpBoSalesReportQuota  implements Serializable {

	public static String REF = "mvSpBoSalesReportQuota";
	public static String PROP_ZONE_NAME = "zoneName";
	public static String PROP_UGA_CODE = "ugaCode";
	public static String PROP_PRODUIT = "produit";
	public static String PROP_SECT_NAME = "sectName";
	public static String PROP_REG_NAME = "regName";
	public static String PROP_MARCHE_NAME = "marcheName";
	public static String PROP_RS_NAME = "rsName";
	public static String PROP_ID = "id";
	public static String PROP_DELTA_PM = "deltaPm";
	public static String PROP_PERIODE = "periode";
	public static String PROP_QUOTA_MARCHE = "quotaMarche";
	public static String PROP_CODE_SRC_IMS = "codeSrcIms";
	public static String PROP_QUOTA_PRODUIT = "quotaProduit";


	// constructors
	public BasemvSpBoSalesReportQuota () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BasemvSpBoSalesReportQuota (java.lang.Integer id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer id;

	// fields
	private java.lang.String marcheName;
	private java.lang.String produit;
	private java.lang.String rsName;
	private java.lang.String zoneName;
	private java.lang.String regName;
	private java.lang.String sectName;
	private java.lang.String ugaCode;
	private java.lang.String codeSrcIms;
	private java.lang.String periode;
	private java.lang.Double quotaProduit;
	private java.lang.Double quotaMarche;
	private java.lang.Double deltaPm;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  column="ID"
     */
	public java.lang.Integer getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.Integer id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: MARCHE_NAME
	 */
	public java.lang.String getMarcheName () {
		return marcheName;
	}

	/**
	 * Set the value related to the column: MARCHE_NAME
	 * @param marcheName the MARCHE_NAME value
	 */
	public void setMarcheName (java.lang.String marcheName) {
		this.marcheName = marcheName;
	}



	/**
	 * Return the value associated with the column: PRODUIT
	 */
	public java.lang.String getProduit () {
		return produit;
	}

	/**
	 * Set the value related to the column: PRODUIT
	 * @param produit the PRODUIT value
	 */
	public void setProduit (java.lang.String produit) {
		this.produit = produit;
	}



	/**
	 * Return the value associated with the column: RS_NAME
	 */
	public java.lang.String getRsName () {
		return rsName;
	}

	/**
	 * Set the value related to the column: RS_NAME
	 * @param rsName the RS_NAME value
	 */
	public void setRsName (java.lang.String rsName) {
		this.rsName = rsName;
	}



	/**
	 * Return the value associated with the column: ZONE_NAME
	 */
	public java.lang.String getZoneName () {
		return zoneName;
	}

	/**
	 * Set the value related to the column: ZONE_NAME
	 * @param zoneName the ZONE_NAME value
	 */
	public void setZoneName (java.lang.String zoneName) {
		this.zoneName = zoneName;
	}



	/**
	 * Return the value associated with the column: REG_NAME
	 */
	public java.lang.String getRegName () {
		return regName;
	}

	/**
	 * Set the value related to the column: REG_NAME
	 * @param regName the REG_NAME value
	 */
	public void setRegName (java.lang.String regName) {
		this.regName = regName;
	}



	/**
	 * Return the value associated with the column: SECT_NAME
	 */
	public java.lang.String getSectName () {
		return sectName;
	}

	/**
	 * Set the value related to the column: SECT_NAME
	 * @param sectName the SECT_NAME value
	 */
	public void setSectName (java.lang.String sectName) {
		this.sectName = sectName;
	}



	/**
	 * Return the value associated with the column: UGA_CODE
	 */
	public java.lang.String getUgaCode () {
		return ugaCode;
	}

	/**
	 * Set the value related to the column: UGA_CODE
	 * @param ugaCode the UGA_CODE value
	 */
	public void setUgaCode (java.lang.String ugaCode) {
		this.ugaCode = ugaCode;
	}



	/**
	 * Return the value associated with the column: C_PRESC_IMS
	 */
	public java.lang.String getcodeSrcIms () {
		return codeSrcIms;
	}

	/**
	 * Set the value related to the column: C_PRESC_IMS
	 * @param codeSrcIms the C_PRESC_IMS value
	 */
	public void setcodeSrcIms (java.lang.String codeSrcIms) {
		this.codeSrcIms = codeSrcIms;
	}



	/**
	 * Return the value associated with the column: PERIODE
	 */
	public java.lang.String getPeriode () {
		return periode;
	}

	/**
	 * Set the value related to the column: PERIODE
	 * @param periode the PERIODE value
	 */
	public void setPeriode (java.lang.String periode) {
		this.periode = periode;
	}



	/**
	 * Return the value associated with the column: QUOTA_PRODUIT
	 */
	public java.lang.Double getQuotaProduit () {
		return quotaProduit;
	}

	/**
	 * Set the value related to the column: QUOTA_PRODUIT
	 * @param quotaProduit the QUOTA_PRODUIT value
	 */
	public void setQuotaProduit (java.lang.Double quotaProduit) {
		this.quotaProduit = quotaProduit;
	}



	/**
	 * Return the value associated with the column: QUOTA_MARCHE
	 */
	public java.lang.Double getQuotaMarche () {
		return quotaMarche;
	}

	/**
	 * Set the value related to the column: QUOTA_MARCHE
	 * @param quotaMarche the QUOTA_MARCHE value
	 */
	public void setQuotaMarche (java.lang.Double quotaMarche) {
		this.quotaMarche = quotaMarche;
	}



	/**
	 * Return the value associated with the column: DELTA_PM
	 */
	public java.lang.Double getDeltaPm () {
		return deltaPm;
	}

	/**
	 * Set the value related to the column: DELTA_PM
	 * @param deltaPm the DELTA_PM value
	 */
	public void setDeltaPm (java.lang.Double deltaPm) {
		this.deltaPm = deltaPm;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.gsk.europepharma.salesReport.hibernate.mvSpBoSalesReportQuota)) return false;
		else {
			com.gsk.europepharma.salesReport.hibernate.mvSpBoSalesReportQuota mvSpBoSalesReportQuota = (com.gsk.europepharma.salesReport.hibernate.mvSpBoSalesReportQuota) obj;
			if (null == this.getId() || null == mvSpBoSalesReportQuota.getId()) return false;
			else return (this.getId().equals(mvSpBoSalesReportQuota.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}